
class Student : People {
    int classes;
    int totalScores;
    public Student(int age, int classes,int totalScores) => (this.age,this.classes,this.totalScores) = (age,classes,totalScores);

    public int isPass() {
        if (this.age >= 16 && this.age <= 20 && totalScores > 480 ||
        this.age >= 21 && this.age <= 30 && totalScores > 450) {
            return 1;
        }else
        {
            return 0;
        }
    }
}